<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
<base th:href="@{/}">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<title>终止授权</title>
<th:block th:include ="commHeaderInclude::commHead"></th:block>
<style>
	.form{}
	.form .error{ color: #f30; margin-left: 20px;}
</style>
</head>
<body class="ht">
<th:block th:include="commHeaderInclude::loading"></th:block>
	<div class="content-wrapper">
		<form name="form" id="form" class="form" method="post" th:object="${dto}">
			<input type="hidden" name="token" th:value="${session.token}">
			<div class="alert alert-warning">
				<p>注意：停止授权时，相关的融资申请将一并终止，请谨慎操作；</p>
			</div>




			<div class="card mb-3">
				<div class="card-body">
					<h4 class="card-title">终止授权</h4>
					<div class="module">
						<table cellpadding="0" cellspacing="0" class="vTable">
							<tbody>
							<tr>
								<th class="label">终止授权原因</th>
								<td>
								<textarea name="revokeApplyReason" th:text="*{revokeApplyReason}" maxlength="200"></textarea><span class="error" th:errors="*{revokeApplyReason}" th:if="*{#fields.hasErrors('revokeApplyReason')}"></span>
								<input type="hidden" name="id" th:value="*{id}" />
								</td>
							</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>

			<div class="row">
				<input class="btn btn-primary btn-lg" name="submitButton" type="submit" value="提 交" />
			</div>
		</form>
	</div>
</body>
<script>
$("#form").on("submit",function(){
	if(window.confirm("确认终止授权？")==true){
		return true;
	}else{
		return false;
	}
});

var ruleParser=new RuleParser("#form");
ruleParser.loadRule(baseUrl+"/hos/auth/stopFormRule.json")

//seajs.use("/mcp/hos/finance/Form.js");
</script>
</html>